package com.demo.enums;
/**
 * 医嘱类型 1药物 2物理IPC 3物理GCS
 */
public enum VtePreventiveDoctorAdviceTypeEnum {
    YAO_WU(1, "药物"),
    WU_LI_IPC(2, "物理IPC"),
    WU_LI_GCS(3, "物理GCS");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    VtePreventiveDoctorAdviceTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static VtePreventiveDoctorAdviceTypeEnum getByValue(Integer value) {
        for (VtePreventiveDoctorAdviceTypeEnum item : values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        return null;
    }
}
